﻿//using System;
//using System.Collections.Generic;
//using System.Windows;
//using System.Windows.Input;
//using GameEditor.View.Components;
//using GameEngine.Model;
//using GameEngine.View.Components;
//using PureMVC.Interfaces;
//using PureMVC.Patterns;
//using GameEngine.View;
//using GameEngine.Clients.Silverlight.View.Components;
//using SilverlightClientEditor.View.Components;
//using System.Windows.Controls;
//using System.IO;
//using GameEditor.View;
//using GameEngine.Clients.Silverlight.View;

//namespace SilverlightClientEditor.View
//{
//    /// <summary>
//    /// Trata do contentor do editor de jogo
//    /// 
//    /// Contem o menu das opcoes do jogo
//    ///     criar levels
//    ///     opcoes genericas de mapa tilesize etc
//    /// Contem o lvl editor
//    ///     Contem World editor
//    ///     Contem Item editor
//    /// Contem o itemcreator
//    /// </summary>
//    public class SilverlightGameEditorMediator : GameEditorMediator<GamePropertiesEditorUC, LevelPropertiesEditorUC, WorldPropertiesEditorUC, MapPropertiesEditorUC, ResourcePropertiesEditorUC, ViewEditorUC,ShapePropertiesEditorUC, ThingTypePropertiesEditorUC, ThingPropertiesEditorUC, EditorGameUC, EditorLevelUC, WorldUC, MapUC, ItemUC, FrameworkElement, int>
//    {
//        public SilverlightGameEditorMediator(string name, GameEditorUC view, 
//            IGameDataProxy<int> game,
//            WorldMediator<WorldUC, MapUC, ItemUC, int, FrameworkElement> worldMediator,
//            //GameMediator<MyGameView, MyLevelView, MyWorldView, MyMapView, MyItemView, MyIdType, MyBaseUIElementType> gameMediator,
//            GamePropertiesEditor_MenuMediator<GamePropertiesEditorUC, int> gameEditorMenuMediator,
//            LevelPropertiesEditor_MenuMediator<LevelPropertiesEditorUC, int> levelEditorMenuMediator,
//            WorldPropertiesEditor_MenuMediator<WorldPropertiesEditorUC, int> worldEditorMenuMediator,
//            MapPropertiesEditor_Mediator<MapPropertiesEditorUC, MapUC, ItemUC, int, FrameworkElement> mapEditorMenuMediator,
//            //ResourceEditorMenuMediator<ResourceEditorMenuUC, int> resourceEditorMenuMediator,
//            //ViewEditorMenuMediator<ViewEditorUC, int> viewEditorMenuMediator,
//            //ThingTypeEditorMenuMediator<ThingTypeEditorMenuUC, int> thingTypeEditorMenuMediator,
//            ThingPropertiesEditor_MenuMediator<ThingPropertiesEditorUC, int> thingEditorMenuMediator,
//            string outCommand) :
//            base(name, view, game, worldMediator, gameEditorMenuMediator,levelEditorMenuMediator, worldEditorMenuMediator,
//            mapEditorMenuMediator,thingEditorMenuMediator, outCommand)
//        {
            
//        }

//        public new GameEditorUC ViewComponent
//        {
//            get { return base.ViewComponent as GameEditorUC; }
//        }

//        //override protected void ViewComponent_OnSaveButtonClick()
//        //{
//        //    SaveFileDialog sd = new SaveFileDialog();
//        //    if (sd.ShowDialog().Value)
//        //    {
//        //        base.ViewComponent_OnSaveButtonClick();
//        //        string output = game.VO.Serialize();
//        //        TextWriter w = new StreamWriter(sd.OpenFile());
//        //        w.Write(output);
//        //        w.Flush();
//        //        w.Close();
//        //    }
//        //}
//    }
//}
